package com.kermel.common.util;

import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Constructor;

public class ReflectionUtil {
    
    public static void makeAllConstructorsAccessible(Class<?> theClass) {
        if (theClass == null)
            throw new IllegalArgumentException("Class cannot be null");
        
        Constructor<?>[] constructors = theClass.getDeclaredConstructors();
        AccessibleObject.setAccessible(constructors, true);
    }
    
}
